home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
INFO
/
FTP2UK23.ZIP
/
ftget.proto
< prev
next >
Wrap
Text File
|
1991-09-16
|
839b
|
42 lines
#!/bin/sh
#
# $Id: ftget.proto,v 1.0 91/09/16 18:00:41 nino Exp Locker: nino $
#
# N.Margetic, Dept. of Medical Physisc, UCL (nino@mph.sm.ucl.ac.uk)
# script for getting the stuff via ft-relay
#
# $Log: ftget.proto,v $
# Revision 1.0 91/09/16 18:00:41 nino
# Initial revision
#
#
pgname=`basename $0`
swtch=
bdir=
dir=
file=
host=
#
# set parameters according to host
case $pgname in
wustl) host=wuarchive.wustl.edu;bdir=mirrors/msdos;;
prep) host=prep.ai.mit.edu;bdir=pub;;
watsun) host=watsun.cc.columbia.edu;bdir=kermit;;
*) echo "Host $pgname not supported (yet)...";\
echo "usage: $pgname [-b] directory file";exit 1;;
esac
#
# input processing
case $1 in
"") echo "usage: $pgname [-b] directory file";exit 1;;
-*) swtch=$1;shift;;
esac
#
dir=$1; shift;
file=$1; shift;
#
# do it.
ftget $swtch $bdir/$dir $file $host
#
# end